home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / tabdlg2.zip / TABDLG2.H < prev    next >
C/C++ Source or Header  |  1994-05-15  |  2KB  |  71 lines

  1. /*
  2. ** TabDlg DLL
  3. ** Copyright (c) 1994 Edward McCreary.
  4. ** All rights reserved.
  5. **
  6. ** Redistribution and use in source and binary forms are freely permitted
  7. ** provided that the above copyright notice and attibution and date of work
  8. ** and this paragraph are duplicated in all such forms.
  9. ** THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
  10. ** IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  11. ** WARRANTIES OF MERCHANTIBILILTY AND FITNESS FOR A PARTICULAR PURPOSE.
  12. */
  13.  
  14. #ifndef TABDLG_H
  15. #define TABDLG_H
  16.  
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20.  
  21. typedef struct tagTagTemplate
  22. {
  23.  LPCSTR lpDlgTemplate; /* dialog template for tag */
  24.  LPCSTR lpTitle;    /* null terminated title for tag */
  25. } TAGTEMPLATE;
  26.  
  27. /*
  28. ** 
  29. ** call this from WM_INITDIALOG to create tabs
  30. ** hDlg handle of parent dialog box
  31. ** hInst instance handle of module where tab templates are located
  32. ** wFrameID control ID of frame to use for tabs
  33. ** lpTemplates array of TAGTEMPLATE structures 
  34. ** nNumTemplates number of entries in lpTemplates
  35. **
  36. */
  37.  
  38. BOOL WINAPI BuildTabs(HWND hDlg,HINSTANCE hInst, UINT wFrameID, 
  39.     const TAGTEMPLATE FAR *lpTemplates, int nNumTemplates);
  40.  
  41. /*
  42. **
  43. ** Set nTabID to be the top tab.  0 based index into lpTemplates
  44. ** parameter of BuildTabs
  45. **
  46. */                         
  47.                          
  48. BOOL WINAPI  SetTopTab(HWND hDlg, int nTabID);
  49.  
  50.  
  51. /*
  52. **
  53. ** set tab styles, you must force a repaint if not
  54. ** called from WM_INITDIALOG
  55. **
  56. */
  57. void WINAPI  SetTabStyle(HWND hDlg, DWORD dwStyle);
  58.  
  59. /*
  60. **
  61. ** styles for SetTabStyle
  62. **
  63. */
  64. #define TAB_SHADOWTEXT  0x0001
  65.  
  66. #ifdef __cplusplus
  67. }
  68. #endif
  69.  
  70.  
  71. #endif /* TABDLG_H */